/**
 * $RCSfile: DefaultUserProvider.java,v $
 * $Revision: 3116 $
 * $Date: 2005-11-24 06:25:00 -0300 (Thu, 24 Nov 2005) $
 *
 * Copyright (C) 2004-2008 Jive Software. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.lzy.pt;

import java.util.List;
import java.util.Map;

public class BaseInfoManager {

	private static BaseInfoManager infoManager = new BaseInfoManager();
	
	private BaseInfoProvider provider = new DefaultBaseInfoProvider();
	
	private BaseInfoManager() {
	}
	
	public static BaseInfoManager getInstance() {
        return infoManager;
    }
	
	public static BaseInfoProvider getUserProvider() {
        return getInstance().provider;
    }
	
	public Map<String, Object> findBaseInfoMap(String username) throws Exception {
		return provider.loadBaseInfoMap(username);
    }
	
	public List<BaseInfo> findBaseInfo(String username) throws Exception {
        return provider.loadBaseInfo(username);
    }
	
	public List<BaseInfo1> findBaseInfo1(String username) throws Exception{
        return provider.loadBaseInfo1(username);
    }

	
}
